<template>
    <div  class="a1">
        <van-nav-bar
            title="添加爱车"
            left-text=""
            right-text="体验爱车服务"
            left-arrow
            @click-left="onClickLeft"
            @click-right="onClickRight"/>
        <div>
            <div class="a2">
                <van-cell-group>
                <van-field v-model="value" label="爱车车型" placeholder="请输入车型" />
                </van-cell-group>
            </div>
            <span>输入车型后，可筛选爱车支持和充过的充电站</span>
            <div class="a3">
                <van-cell-group>
                <van-field v-model="value" label="车牌号码" placeholder="请输入车牌号码" />
                </van-cell-group>
            </div>
            <span>特来电与部分停车场系统合作，添加车牌号后，驶出停车场时回自动为您减免停车费。</span>
            <div class="a4">
                <van-cell-group>
                <van-field v-model="value" label="生成年份" placeholder="请输入成产年份" />
                </van-cell-group>
            </div>
            <div class="a5">
                <van-cell-group>
                <van-field v-model="value" label="续航(km)" placeholder="请输入续航里程" />
                </van-cell-group>
            </div>
            <span>输入续航，充电中查看的剩余充电时间更准确</span>
            <div>
                
            </div>
            <div>
                <van-cell-group>
                <van-switch-cell v-model="checked" title="我要认证爱车" />
                </van-cell-group>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {
            value: '',
            checked: true,
    };
  },
    methods: {
        onClickLeft() {
        Toast('');
        },
        onClickRight() {
        Toast('按钮');
        },
    },
};
</script>

<style lang="scss" scoped>
.a1{
    background: rgb(242, 246, 252);
}
span{
    font-size: 6px;
    color: rgb(145, 145, 145);
    margin-left: 18px;
}
.a2{
    margin-top: 5px;
    margin-bottom: 5px;
}
.a3{
    margin-top: 20px;
}
.a4{
    margin-top: 30px;
}
.a5{
    margin-top: 5px;
    margin-bottom: 5px;
}
</style>